package com.example.activity.pojo;

import org.hibernate.annotations.ColumnDefault;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Create by Ron
 * @date 2020/5/14 11:50
 */
@Entity
@Table
public class ApplForm implements Serializable {

    private static final long serialVersionUID = -146123982323015938L;

    @Id
    @GeneratedValue
    private int formId;

    private int geaUserId;

    private String remark;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date beginDate;

    private int durationDays;


    private String appStatus;

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName;
    }

    private String applicantName;

    public int getFormId() {
        return formId;
    }

    public void setFormId(int formId) {
        this.formId = formId;
    }

    public int getGeaUserId() {
        return geaUserId;
    }

    public void setGeaUserId(int geaUserId) {
        this.geaUserId = geaUserId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public int getDurationDays() {
        return durationDays;
    }

    public void setDurationDays(int durationDays) {
        this.durationDays = durationDays;
    }


    public String getAppStatus() {
        return appStatus;
    }

    public void setAppStatus(String appStatus) {
        this.appStatus = appStatus;
    }

    @Override
    public String toString() {
        return "ApplForm{" +
                "formId=" + formId +
                ", geaUserId=" + geaUserId +
                ", remark='" + remark + '\'' +
                ", beginDate=" + beginDate +
                ", durationDays=" + durationDays +
                ", appStatus='" + appStatus + '\'' +
                ", applicantName='" + applicantName + '\'' +
                '}';
    }
}
